# -*- coding: utf-8 -*-
from selenium import webdriver
import sys,time
reload(sys)
sys.setdefaultencoding('utf-8')

import login

def logout(driver):
	u"退出登录"
	time.sleep(1)
	driver.find_element_by_link_text(u"退出").click()
	time.sleep(2)
    
if __name__=='__main__':
	driver=webdriver.Firefox()
	login.login(driver)
	logout(driver)
	print 'test finish'